From 30a9ec9a8c0fa8a38448aaac130bac9089039b2d Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 4 Apr 2008 15:58:21 +0000 Subject: [PATCH] Don't write empty URLs to LMX format. --- gpsbabel/lmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/lmx.c b/gpsbabel/lmx.c index 42364b31d..5082a0cc0 100644 --- a/gpsbabel/lmx.c +++ b/gpsbabel/lmx.c @@ -90,7 +90,7 @@ lmx_print(const waypoint *wpt) } gbfprintf(ofd, " \n"); - if (wpt->url) { + if (wpt->url && wpt->url[0]) { gbfprintf(ofd, " \n"); if (wpt->url_link_text) lmx_write_xml(5,"lm:name", wpt->url_link_text); -- 2.30.2